import Cookies from 'js-cookie'

const TokenKey = 'vue_zgzxw_liu_token'
const zgzxwAccount = 'zgzxwAccount'

export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token, { expires: 7 })
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}

export function setMation(data) {
    return Cookies.set(zgzxwAccount, data, { expires: 7 })
}
export function getMation() {
    return Cookies.get(zgzxwAccount)
}
export function removeMation() {
    return Cookies.remove(zgzxwAccount)
}